﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class sys_users_del : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["un"] != null)
        {
            del(Request["un"].ToString());
        }
        else
        {
            Label1.Text="没有选定用户！";
        }
    }
    public bool del(string username)
    {
        if (MasApp.BLL.Delete.DelManaUser(username))
        {
            Label1.Text = "删除成功！";
            return true;
        }
        else
        {
            Label1.Text = "删除操作出错了！如果出现系统无法登陆等问题，请联系系统管理员！";
            return false;
        }
    }
}
